package org.dzq.designmode.proxy.dynamicproxy;

import org.dzq.designmode.proxy.Animal;
import org.dzq.designmode.proxy.Cat;

import java.lang.reflect.Proxy;

/**
 * @ClassName: Test
 * @Package: org.dzq.designmode.proxy.dynamicproxy
 * @author: 越
 * @date: 2023/6/17 12:32
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Animal animal= ProxyFactory.getProxyObject(Animal.class,new Cat());
        animal.eat("猫粮");
    }
}
